#include "user_uart3.h"
uint8_t cmd20[] = {//一键发送重量One-click send weight
0xAA,0x01,0x20,0xCB,0x2F,
    0x00   // 终止符
};
uint8_t cmd21_GW[] = {//取毛重,发送有问题，终止符和命令相同导致Take the gross weight.
0xAA,0x02,0x21,0x00,0xCD,0x2F,
    0x00   // 终止符
};
uint8_t cmd21_NW[] = {//取净重Take the net weight
0xAA,0x02,0x21,0x01,0xCE,0x2F,
    0x00   // 终止符
};

uint8_t cmd22[] = {//去皮Peel off the skin
0xAA,0x01,0x22,0xCD,0x2F,
    0x00   // 终止符
};
uint8_t cmd23[] = {//回皮（取皮重）Back skin (weight of removed skin)
0xAA,0x01,0x23,0xCE,0x2F,
    0x00   // 终止符
};
uint8_t cmd24[] = {//置零zero out
0xAA,0x01,0x24,0xCF,0x2F,
    0x00   // 终止符
};

uint8_t cmd25[] = {//主动上传	0X25——上传键值及参数,略Initiate the upload process
0xAA,0x01,0x20,0xCB,0x2F,0xAA,0x01,0x20,0xCB,0x2F,0xAA,0x01,0x20,0xCB,0x2F,
    0x00   // 终止符
};
uint8_t cmd26[] = {//0X26——单价下发;略Issue of unit price
0xAA,0x01,0x20,0xCB,0x2F,
    0x00   // 终止符
};
uint8_t cmd27[] = {//0X27——上传净重+单价+电压+充电状态+称重状态Upload gross weight + unit price + voltage + charging status + weighing status
0xAA,0x01,0x27,0xD2,0x2F,
    0x00   // 终止符
};
uint8_t cmd28[] = {//0X28——上传内码信息Upload internal code information
0xAA,0x01,0x28,0xD3,0x2F,
    0x00   // 终止符
}; 
uint8_t cmd29[] = {//校准参数下发,略Calibration parameters are issued
0xAA,0x01,0x28,0xD3,0x2F,0xAA,0x01,0x28,0xD3,0x2F,
0xAA,0x01,0x28,0xD3,0x2F,
    0x00   // 终止符
};




//一键发送重量One-click send weight
void send_command_0x20(void)
{
    Serial_Send_String(cmd20);
}MSH_CMD_EXPORT(send_command_0x20, CMD_20 One-click send weight);



//取毛重,发送有问题，终止符和命令相同导致Take the gross weight.
void send_command_0x21_GW(void)
{
    Serial_Send_String(cmd21_GW);
}MSH_CMD_EXPORT(send_command_0x21_GW,CMD_21_GW Take the net weight);// 导出函数为命令


void send_command_0x21_NW(void)
{
    Serial_Send_String(cmd21_NW);//取净重Take the net weight
}MSH_CMD_EXPORT(send_command_0x21_NW, CMD_21_NW Take the net weight);


void send_command_0x22(void)
{
    Serial_Send_String(cmd22);//去皮Peel off the skin
}MSH_CMD_EXPORT(send_command_0x22,CMD_22 Peel off the skin);


void send_command_0x23(void)
{
    Serial_Send_String(cmd23);//回皮（取皮重）Back skin (weight of removed skin)
}MSH_CMD_EXPORT(send_command_0x23, CMD_23 Back skin (weight of removed skin));


void send_command_0x24(void)
{
    Serial_Send_String(cmd24);//置零zero out
}MSH_CMD_EXPORT(send_command_0x24, CMD_24 zero out);

void send_command_0x25(void)
{
    Serial_Send_String(cmd25);//主动上传	0X25——上传键值及参数,略Initiate the upload process
}MSH_CMD_EXPORT(send_command_0x25, CMD_25 Initiate the upload process);

void send_command_0x26(void)
{
    Serial_Send_String(cmd26);//0X26——单价下发;略Issue of unit price
}MSH_CMD_EXPORT(send_command_0x26, CMD_26 Issue of unit price);

void send_command_0x27(void)
{
    Serial_Send_String(cmd27);//0X27——上传净重+单价+电压+充电状态+称重状态Upload gross weight + unit price + voltage + charging status + weighing status
}MSH_CMD_EXPORT(send_command_0x27, CMD_27 Upload gross weight + unit price + voltage + charging status + weighing status);

void send_command_0x28(void)
{
    Serial_Send_String(cmd28);//0X28——上传内码信息Upload internal code information
}MSH_CMD_EXPORT(send_command_0x28, CMD_28 Upload internal code information);

void send_command_0x29(void)
{
    Serial_Send_String(cmd29);//校准参数下发,略Calibration parameters are issued
}MSH_CMD_EXPORT(send_command_0x29, CMD_29 Calibration parameters are issued);
